/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hellodoctor.slayer.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Appointment}.
 * </p>
 *
 * @author Shahbaj
 * @see Appointment
 * @generated
 */
public class AppointmentWrapper implements Appointment,
	ModelWrapper<Appointment> {
	public AppointmentWrapper(Appointment appointment) {
		_appointment = appointment;
	}

	@Override
	public Class<?> getModelClass() {
		return Appointment.class;
	}

	@Override
	public String getModelClassName() {
		return Appointment.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("appointmentId", getAppointmentId());
		attributes.put("doctorId", getDoctorId());
		attributes.put("patientId", getPatientId());
		attributes.put("appointmentDate", getAppointmentDate());
		attributes.put("appointmentTime", getAppointmentTime());
		attributes.put("status", getStatus());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifiedDate", getModifiedDate());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long appointmentId = (Long)attributes.get("appointmentId");

		if (appointmentId != null) {
			setAppointmentId(appointmentId);
		}

		Long doctorId = (Long)attributes.get("doctorId");

		if (doctorId != null) {
			setDoctorId(doctorId);
		}

		Long patientId = (Long)attributes.get("patientId");

		if (patientId != null) {
			setPatientId(patientId);
		}

		Date appointmentDate = (Date)attributes.get("appointmentDate");

		if (appointmentDate != null) {
			setAppointmentDate(appointmentDate);
		}

		Integer appointmentTime = (Integer)attributes.get("appointmentTime");

		if (appointmentTime != null) {
			setAppointmentTime(appointmentTime);
		}

		Integer status = (Integer)attributes.get("status");

		if (status != null) {
			setStatus(status);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifiedDate = (Date)attributes.get("modifiedDate");

		if (modifiedDate != null) {
			setModifiedDate(modifiedDate);
		}
	}

	/**
	* Returns the primary key of this appointment.
	*
	* @return the primary key of this appointment
	*/
	@Override
	public long getPrimaryKey() {
		return _appointment.getPrimaryKey();
	}

	/**
	* Sets the primary key of this appointment.
	*
	* @param primaryKey the primary key of this appointment
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_appointment.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the appointment ID of this appointment.
	*
	* @return the appointment ID of this appointment
	*/
	@Override
	public long getAppointmentId() {
		return _appointment.getAppointmentId();
	}

	/**
	* Sets the appointment ID of this appointment.
	*
	* @param appointmentId the appointment ID of this appointment
	*/
	@Override
	public void setAppointmentId(long appointmentId) {
		_appointment.setAppointmentId(appointmentId);
	}

	/**
	* Returns the doctor ID of this appointment.
	*
	* @return the doctor ID of this appointment
	*/
	@Override
	public long getDoctorId() {
		return _appointment.getDoctorId();
	}

	/**
	* Sets the doctor ID of this appointment.
	*
	* @param doctorId the doctor ID of this appointment
	*/
	@Override
	public void setDoctorId(long doctorId) {
		_appointment.setDoctorId(doctorId);
	}

	/**
	* Returns the patient ID of this appointment.
	*
	* @return the patient ID of this appointment
	*/
	@Override
	public long getPatientId() {
		return _appointment.getPatientId();
	}

	/**
	* Sets the patient ID of this appointment.
	*
	* @param patientId the patient ID of this appointment
	*/
	@Override
	public void setPatientId(long patientId) {
		_appointment.setPatientId(patientId);
	}

	/**
	* Returns the appointment date of this appointment.
	*
	* @return the appointment date of this appointment
	*/
	@Override
	public java.util.Date getAppointmentDate() {
		return _appointment.getAppointmentDate();
	}

	/**
	* Sets the appointment date of this appointment.
	*
	* @param appointmentDate the appointment date of this appointment
	*/
	@Override
	public void setAppointmentDate(java.util.Date appointmentDate) {
		_appointment.setAppointmentDate(appointmentDate);
	}

	/**
	* Returns the appointment time of this appointment.
	*
	* @return the appointment time of this appointment
	*/
	@Override
	public int getAppointmentTime() {
		return _appointment.getAppointmentTime();
	}

	/**
	* Sets the appointment time of this appointment.
	*
	* @param appointmentTime the appointment time of this appointment
	*/
	@Override
	public void setAppointmentTime(int appointmentTime) {
		_appointment.setAppointmentTime(appointmentTime);
	}

	/**
	* Returns the status of this appointment.
	*
	* @return the status of this appointment
	*/
	@Override
	public int getStatus() {
		return _appointment.getStatus();
	}

	/**
	* Sets the status of this appointment.
	*
	* @param status the status of this appointment
	*/
	@Override
	public void setStatus(int status) {
		_appointment.setStatus(status);
	}

	/**
	* Returns the create date of this appointment.
	*
	* @return the create date of this appointment
	*/
	@Override
	public java.util.Date getCreateDate() {
		return _appointment.getCreateDate();
	}

	/**
	* Sets the create date of this appointment.
	*
	* @param createDate the create date of this appointment
	*/
	@Override
	public void setCreateDate(java.util.Date createDate) {
		_appointment.setCreateDate(createDate);
	}

	/**
	* Returns the modified date of this appointment.
	*
	* @return the modified date of this appointment
	*/
	@Override
	public java.util.Date getModifiedDate() {
		return _appointment.getModifiedDate();
	}

	/**
	* Sets the modified date of this appointment.
	*
	* @param modifiedDate the modified date of this appointment
	*/
	@Override
	public void setModifiedDate(java.util.Date modifiedDate) {
		_appointment.setModifiedDate(modifiedDate);
	}

	@Override
	public boolean isNew() {
		return _appointment.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_appointment.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _appointment.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_appointment.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _appointment.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _appointment.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_appointment.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _appointment.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_appointment.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_appointment.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_appointment.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new AppointmentWrapper((Appointment)_appointment.clone());
	}

	@Override
	public int compareTo(com.hellodoctor.slayer.model.Appointment appointment) {
		return _appointment.compareTo(appointment);
	}

	@Override
	public int hashCode() {
		return _appointment.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<com.hellodoctor.slayer.model.Appointment> toCacheModel() {
		return _appointment.toCacheModel();
	}

	@Override
	public com.hellodoctor.slayer.model.Appointment toEscapedModel() {
		return new AppointmentWrapper(_appointment.toEscapedModel());
	}

	@Override
	public com.hellodoctor.slayer.model.Appointment toUnescapedModel() {
		return new AppointmentWrapper(_appointment.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _appointment.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _appointment.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_appointment.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof AppointmentWrapper)) {
			return false;
		}

		AppointmentWrapper appointmentWrapper = (AppointmentWrapper)obj;

		if (Validator.equals(_appointment, appointmentWrapper._appointment)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public Appointment getWrappedAppointment() {
		return _appointment;
	}

	@Override
	public Appointment getWrappedModel() {
		return _appointment;
	}

	@Override
	public void resetOriginalValues() {
		_appointment.resetOriginalValues();
	}

	private Appointment _appointment;
}